<?php
header("content-type:text/html;charset=utf-8");
include "public/is_login.php";
if($_GET['logout'] == "logout"){
	session_destroy();
	header('location:user.php');
}
//include "../../public/config/config.php";
//include "../../public/include/funcs.php";
//$link=conn($cfg_dbhost,$cfg_dbuser,$cfg_dbpwd,$cfg_dbname,$cfg_dbchar);
//$day_int=date("Y-m-d");
//$y=substr($day_int, 2,2);
//$m=substr($day_int, 5,2);
//$d=substr($day_int, 8,2);
//$day_id=$y.$m.$d;
//$today_work=select($link, "work_con","day_id=$day_id and user_id=$user_id");



?>
<html>
	<head>
		<title>分享商城 - 个人中心</title>
		<link rel="stylesheet" type="text/css" href="main.css"/>
	</head>
	<body>

<img src="imgs/user.png" width="100%" alt="" />
<div class="share_b">
	<a href="share.php?id=<?php echo $id;?>">
		<div class="share"></div>
	</a>
</div>

<p>当前登录账号：<?php echo $tname;?></p>
<p>当前账号ID：<?php echo $id ? $id : "重新登录可显示。";?></p>
<a href="user.php?logout=logout">退出登录</a>
<div class="footer">
	<?php include "template/footer.php";?>
</div>
	</body>
</html>